package com.joysuch.wwyt.common.enums;

/**
 * @Author ZhangDong
 * @Date 2020/4/27 15:09
 */
public enum TemplateTypes {

    DEPARTMENT(1, "01_部门导入.xlsx"),
    JOB(2, "02_岗位导入.xlsx"),
    USER(3, "03_人员档案导入.xlsx"),
    RISK_DISTRICT(4,"04_风险区域导入.xlsx"),
    RISK_POINT_EVALUATION(5,"05_风险评估导入.xlsx"),

    DANGER(6, "06_危化品导入.xlsx"),
    HARZARD(7, "07_重大危险源导入.xlsx"),
    VIDEO(8,"08_视频设备导入.xlsx"),
    MONITER(9, "09_监测点导入.xlsx"),
    DEVICE(10, "10_设备装置导入.xlsx"),
    STORE(11, "11_储罐(区)导入.xlsx"),
    INDUSTRY(12, "12_工业管道导入.xlsx"),
    RISK_POINT(13,"13_风险点导入.xlsx"),
    NFC_CARD(14,"14_NFC卡导入.xlsx"),
    QUESTION(15,"15_试题题库导入.xlsx"),
    CONTACTOR(16,"16_承包商信息导入.xlsx"),
    CONTACTOR_STAFF(17,"17_承包商人员信息导入.xlsx"),
    CERTIFICATE(18,"18_持证管理导入.xlsx"),
    INSPECT_ITEM(19,"19_巡检检查内容导入.xlsx"),
    HIDDEN_DANGER_REPO(20,"20_隐患标准库导入.xlsx"),
    RISK_POINT_STORE_EVALUATION(21,"21_作业分析库导入.xlsx"),
    CHECK_ITEM(22,"22_检查项目导入模板.xlsx"),
    ATTENDANCE_USER(23,"23_考勤排班导入模板.xlsx"),
    TRAINNING_RECORD(24,"24_培训记录模板.xlsx"),
    TRAINNING_RECORD_RESULT(25,"25_培训记录结果模板.xlsx"),
    ATTENDANT_PLAN(26,"26_跟班计划模板导入.xlsx"),
    USER_IMEI_TEMPLATE(27,"27_人员IMEI导入.xlsx"),


    // 风险点评价记录打印
    RISK_EVAL_WORK_SAFETY_CERT(100, "workSafetyCertRiskEvalTemp.docx");


    private Integer index;
    private String fileName;

    TemplateTypes(Integer index, String fileName) {
        this.index = index;
        this.fileName = fileName;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public static String getFileName(Integer index) {
        TemplateTypes[] values = TemplateTypes.values();
        for (TemplateTypes value : values) {
            if (value.index.equals(index)) {
                return value.fileName;
            }
        }
        return null;
    }
}
